package com.ktwlsoft.archivemanage.payload.study.studyClass;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.sql.Date;

@Data
public class StudyClassPageRequest {

    @NotNull
    private Integer pn;

    @NotNull
    private Integer pageSize;

    private String keywords;

    @ApiModelProperty("UP, WAIT, DOWN")
    private String state;

    private Long classifyId;

    private Date publishStart;

    private Date publishEnd;

    @ApiModelProperty("发布时间排序方式, 默认desc逆序, 正序排序传:asc")
    private String order = "desc";

    public StudyClassPageRequest() {
    }

    public StudyClassPageRequest(@NotNull Integer pn, @NotNull Integer pageSize, String keywords, String state, Long classifyId, Date publishStart, Date publishEnd) {
        this.pn = pn;
        this.pageSize = pageSize;
        this.keywords = keywords;
        this.state = state;
        this.classifyId = classifyId;
        this.publishStart = publishStart;
        this.publishEnd = publishEnd;
    }
}
